<!doctype html>



  


<html class="theme-next muse use-motion" lang="zh-Hans">
<head>
  <meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>









<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />















  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css" />




  
  
  
  

  
    
    
  

  

  

  

  

  
    
    
    <link href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic&subset=latin,latin-ext" rel="stylesheet" type="text/css">
  






<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css" />

<link href="/css/main.css?v=5.1.1" rel="stylesheet" type="text/css" />


  <meta name="keywords" content="大数据，hadoop," />








  <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico?v=5.1.1" />






<meta name="description" content="一、环境选择1，服务器选择阿里云服务器:入门型(按量付费)操作系统:linux  CentOS 6.8Cpu：1核内存：1G硬盘:40Gip:39.108.77.250 2，配置选择JDK:1.8          （jdk-8u144-linux-x64.tar.gz）Hadoop:2.8.2  (hadoop-2.8.2.tar.gz) 3，下载地址官网地址:JDK：http://www.or">
<meta name="keywords" content="大数据，hadoop">
<meta property="og:type" content="article">
<meta property="og:title" content="大数据学习系列之一  -----  Hadoop环境搭建(单机)">
<meta property="og:url" content="http://yoursite.com/2017/11/26/大数据学习系列之一  -----  Hadoop环境搭建(单机)/index.html">
<meta property="og:site_name" content="xuwujing&#39;s blog">
<meta property="og:description" content="一、环境选择1，服务器选择阿里云服务器:入门型(按量付费)操作系统:linux  CentOS 6.8Cpu：1核内存：1G硬盘:40Gip:39.108.77.250 2，配置选择JDK:1.8          （jdk-8u144-linux-x64.tar.gz）Hadoop:2.8.2  (hadoop-2.8.2.tar.gz) 3，下载地址官网地址:JDK：http://www.or">
<meta property="og:image" content="http://img.blog.csdn.net/20171126155913423?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast">
<meta property="og:image" content="http://img.blog.csdn.net/20171126155941845?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast">
<meta property="og:image" content="http://img.blog.csdn.net/20171126155958713?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast">
<meta property="og:image" content="http://img.blog.csdn.net/20171126160140889?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast">
<meta property="og:image" content="http://img.blog.csdn.net/20171126160153520?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast">
<meta property="og:image" content="http://img.blog.csdn.net/20171126160343698?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast">
<meta property="og:image" content="http://img.blog.csdn.net/20171126160630056?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast">
<meta property="og:image" content="http://img.blog.csdn.net/20171209131921168?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast">
<meta property="og:image" content="http://img.blog.csdn.net/20171126160956081?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast">
<meta property="og:image" content="http://img.blog.csdn.net/20171126161014633?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast">
<meta property="og:image" content="http://img.blog.csdn.net/20171126161142156?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast">
<meta property="og:image" content="http://img.blog.csdn.net/20171126161250022?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast">
<meta property="og:image" content="http://img.blog.csdn.net/20171126161322929?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast">
<meta property="og:image" content="http://img.blog.csdn.net/20171126161410802?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast">
<meta property="og:image" content="http://img.blog.csdn.net/20171126161419612?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast">
<meta property="og:image" content="http://img.blog.csdn.net/20171126161438303?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast">
<meta property="og:image" content="http://img.blog.csdn.net/20171126161508441?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast">
<meta property="og:image" content="http://img.blog.csdn.net/20171126161522032?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast">
<meta property="og:image" content="http://img.blog.csdn.net/20171126161553305?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast">
<meta property="og:updated_time" content="2017-12-10T07:53:57.522Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="大数据学习系列之一  -----  Hadoop环境搭建(单机)">
<meta name="twitter:description" content="一、环境选择1，服务器选择阿里云服务器:入门型(按量付费)操作系统:linux  CentOS 6.8Cpu：1核内存：1G硬盘:40Gip:39.108.77.250 2，配置选择JDK:1.8          （jdk-8u144-linux-x64.tar.gz）Hadoop:2.8.2  (hadoop-2.8.2.tar.gz) 3，下载地址官网地址:JDK：http://www.or">
<meta name="twitter:image" content="http://img.blog.csdn.net/20171126155913423?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Muse',
    sidebar: {"position":"left","display":"post","offset":12,"offset_float":0,"b2t":false,"scrollpercent":false},
    fancybox: true,
    motion: true,
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="http://yoursite.com/2017/11/26/大数据学习系列之一  -----  Hadoop环境搭建(单机)/"/>





  <title>大数据学习系列之一  -----  Hadoop环境搭建(单机) | xuwujing's blog</title>
  





  <script type="text/javascript">
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?39c177d10f6e05ddfa113e02139b9c1c";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>










</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail ">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/"  class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">xuwujing's blog</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br />
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br />
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br />
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br />
            
            标签
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal " itemscope itemtype="http://schema.org/Article">
    <link itemprop="mainEntityOfPage" href="http://yoursite.com/2017/11/26/大数据学习系列之一  -----  Hadoop环境搭建(单机)/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="xuwujing">
      <meta itemprop="description" content="">
      <meta itemprop="image" content="/images/xuwujing.png">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="xuwujing's blog">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">大数据学习系列之一  -----  Hadoop环境搭建(单机)</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2017-11-26T16:18:00+08:00">
                2017-11-26
              </time>
            

            

            
          </span>

          
            <span class="post-category" >
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/hadoop/" itemprop="url" rel="index">
                    <span itemprop="name">hadoop</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          
          

          

          

          

        </div>
      </header>
    

    <div class="post-body" itemprop="articleBody">

      
      

      
        <h2 id="一、环境选择"><a href="#一、环境选择" class="headerlink" title="一、环境选择"></a>一、环境选择</h2><h3 id="1，服务器选择"><a href="#1，服务器选择" class="headerlink" title="1，服务器选择"></a>1，服务器选择</h3><p>阿里云服务器:入门型(按量付费)<br>操作系统:linux  CentOS 6.8<br>Cpu：1核<br>内存：1G<br>硬盘:40G<br>ip:39.108.77.250<br><img src="http://img.blog.csdn.net/20171126155913423?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="这里写图片描述"></p>
<h3 id="2，配置选择"><a href="#2，配置选择" class="headerlink" title="2，配置选择"></a>2，配置选择</h3><p>JDK:1.8          （jdk-8u144-linux-x64.tar.gz）<br>Hadoop:2.8.2  (hadoop-2.8.2.tar.gz)</p>
<h3 id="3，下载地址"><a href="#3，下载地址" class="headerlink" title="3，下载地址"></a>3，下载地址</h3><p><strong>官网地址:</strong><br>JDK：<br><a href="http://www.oracle.com/technetwork/java/javase/downloads" target="_blank" rel="external">http://www.oracle.com/technetwork/java/javase/downloads</a>     </p>
<p>Hadopp:<br><a href="http://www.apache.org/dyn/closer.cgi/hadoop/common" target="_blank" rel="external">http://www.apache.org/dyn/closer.cgi/hadoop/common</a></p>
<p><strong>百度云:</strong></p>
<p>链接：<a href="http://pan.baidu.com/s/1pLqS4kF" target="_blank" rel="external">http://pan.baidu.com/s/1pLqS4kF</a> 密码：yb79</p>
<h2 id="二、服务器的相关配置"><a href="#二、服务器的相关配置" class="headerlink" title="二、服务器的相关配置"></a>二、服务器的相关配置</h2><p>   在配置Hadoop之前，应该先做以下配置</p>
<h3 id="1，更改主机名"><a href="#1，更改主机名" class="headerlink" title="1，更改主机名"></a>1，更改主机名</h3><p>首先更改主机名，目的是为了方便管理。<br>输入: </p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">hostname</div></pre></td></tr></table></figure>
<p>查看本机的名称<br>然后输入: </p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">vim /etc/sysconfig/network</div></pre></td></tr></table></figure>
<p>修改主机名称<br>将HOSTNAME 的名称更改为你想要设置的名称<br><img src="http://img.blog.csdn.net/20171126155941845?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="这里写图片描述"><br>注:主机名称更改之后，要重启(reboot)才会生效。</p>
<p>输入</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">vim /etc/hosts</div></pre></td></tr></table></figure>
<p> 添加 主机IP 和对应的主机名称，做映射。<br><img src="http://img.blog.csdn.net/20171126155958713?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="这里写图片描述"></p>
<p>注:在配置文件中使用主机名的话，这个映射必须做！</p>
<h3 id="2，关闭防火墙"><a href="#2，关闭防火墙" class="headerlink" title="2，关闭防火墙"></a>2，关闭防火墙</h3><p>关闭防火墙，方便外部访问。<br>CentOS 7版本以下输入:<br>关闭防火墙</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">service   iptables stop</div></pre></td></tr></table></figure>
<p>CentOS 7 以上的版本输入：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">systemctl   stop   firewalld.service</div></pre></td></tr></table></figure>
<h3 id="3，时间设置"><a href="#3，时间设置" class="headerlink" title="3，时间设置"></a>3，时间设置</h3><p>输入:</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">date</div></pre></td></tr></table></figure>
<p>查看服务器时间是否一致，若不一致则更改<br>更改时间命令</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">date -s ‘MMDDhhmmYYYY.ss’</div></pre></td></tr></table></figure>
<h2 id="三、Hadoop环境安装"><a href="#三、Hadoop环境安装" class="headerlink" title="三、Hadoop环境安装"></a>三、Hadoop环境安装</h2><h3 id="1，下载jdk、hadoop"><a href="#1，下载jdk、hadoop" class="headerlink" title="1，下载jdk、hadoop"></a>1，下载jdk、hadoop</h3><p> 将下载下来的 jdk、hadoop 解压包放在home 目录下<br>并新建java、hadoop文件夹<br><img src="http://img.blog.csdn.net/20171126160140889?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="这里写图片描述"></p>
<h4 id="3-1-1解压文件"><a href="#3-1-1解压文件" class="headerlink" title="3.1.1解压文件"></a><strong>3.1.1解压文件</strong></h4><p>输入:<br>tar  -xvf   jdk-8u144-linux-x64.tar.gz<br> tar  -xvf   hadoop-2.8.2.tar.gz<br> 解压jdk和hadoop ,分别移动文件到java和hadoop文件下，<br> 并将文件夹重命名为jdk1.8和hadoop2.8<br><img src="http://img.blog.csdn.net/20171126160153520?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="这里写图片描述"></p>
<h3 id="2，JDK环境配置"><a href="#2，JDK环境配置" class="headerlink" title="2，JDK环境配置"></a>2，JDK环境配置</h3><p>   首先输入 </p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">java -version</div></pre></td></tr></table></figure>
<p>查看是否安装了JDK，如果安装了，但版本不适合的话，就卸载</p>
<h4 id="3-2-1-profile-文件更改"><a href="#3-2-1-profile-文件更改" class="headerlink" title="3.2.1 profile 文件更改"></a><strong>3.2.1 profile 文件更改</strong></h4><p>编辑 /etc/profile 文件<br>输入: </p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">vim /etc/profile</div></pre></td></tr></table></figure>
<p>整体的配置文件:</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line">export JAVA_HOME=/home/java/jdk1.8</div><div class="line">export JRE_HOME=/home/java/jdk1.8/jre</div><div class="line">export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib</div><div class="line">export PATH=.:$&#123;JAVA_HOME&#125;/bin:$PATH</div></pre></td></tr></table></figure>
<p><img src="http://img.blog.csdn.net/20171126160343698?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="这里写图片描述"><br><strong>注: JAVA_HOME的路径是 JDK的路径</strong></p>
<p>使用vim 编辑之后 记得输入 </p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">source /etc/profile</div></pre></td></tr></table></figure>
<p>使配置生效</p>
<p>配置完后，输入<code>java -version</code> 查看版本信息<br><img src="http://img.blog.csdn.net/20171126160630056?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="这里写图片描述"></p>
<h3 id="3，Hadoop-环境配置"><a href="#3，Hadoop-环境配置" class="headerlink" title="3，Hadoop 环境配置"></a>3，Hadoop 环境配置</h3><h4 id="3-3-1-profile-文件更改"><a href="#3-3-1-profile-文件更改" class="headerlink" title="3.3.1 profile 文件更改"></a><strong>3.3.1 profile 文件更改</strong></h4><p>编辑 /etc/profile 文件<br>输入: </p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">vim /etc/profile</div></pre></td></tr></table></figure>
<p>整体的配置文件:</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div></pre></td><td class="code"><pre><div class="line">export HADOOP_HOME=/home/hadoop/hadoop2.8</div><div class="line">export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native</div><div class="line">export HADOOP_OPTS=&quot;-Djava.library.path=$HADOOP_HOME/lib&quot;</div><div class="line">export PATH=.:$&#123;JAVA_HOME&#125;/bin:$&#123;HADOOP_HOME&#125;/bin:$PATH</div></pre></td></tr></table></figure>
<p><img src="http://img.blog.csdn.net/20171209131921168?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="这里写图片描述"><br>输入: </p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">source  /etc/profile</div></pre></td></tr></table></figure>
<p>使配置生效 </p>
<p>修改配置文件</p>
<h4 id="3-3-2新建文件夹"><a href="#3-3-2新建文件夹" class="headerlink" title="3.3.2新建文件夹"></a><strong>3.3.2新建文件夹</strong></h4><p>在修改配置文件之前，现在root目录下建立一些文件夹。<br>输入:</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div></pre></td><td class="code"><pre><div class="line">mkdir  /root/hadoop  </div><div class="line">mkdir  /root/hadoop/tmp  </div><div class="line">mkdir  /root/hadoop/var  </div><div class="line">mkdir  /root/hadoop/dfs  </div><div class="line">mkdir  /root/hadoop/dfs/name  </div><div class="line">mkdir  /root/hadoop/dfs/data</div></pre></td></tr></table></figure>
<p><strong>注:在root目录下新建文件夹是防止被莫名的删除。</strong></p>
<p>首先切换到 /home/hadoop/hadoop2.8/etc/hadoop/  目录下</p>
<h4 id="3-3-3修改-core-site-xml"><a href="#3-3-3修改-core-site-xml" class="headerlink" title="3.3.3修改 core-site.xml"></a><strong>3.3.3修改 core-site.xml</strong></h4><p>输入: </p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">vim core-site.xml</div></pre></td></tr></table></figure>
<p>在<code>&lt;configuration&gt;</code>添加:</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div></pre></td><td class="code"><pre><div class="line">&lt;configuration&gt;</div><div class="line">&lt;property&gt;</div><div class="line">        &lt;name&gt;hadoop.tmp.dir&lt;/name&gt;</div><div class="line">        &lt;value&gt;/root/hadoop/tmp&lt;/value&gt;</div><div class="line">        &lt;description&gt;Abase for other temporary directories.&lt;/description&gt;</div><div class="line">   &lt;/property&gt;</div><div class="line">   &lt;property&gt;</div><div class="line">        &lt;name&gt;fs.default.name&lt;/name&gt;</div><div class="line">        &lt;value&gt;hdfs://test1:9000&lt;/value&gt;</div><div class="line">   &lt;/property&gt;</div><div class="line">&lt;/configuration&gt;</div></pre></td></tr></table></figure>
<p><img src="http://img.blog.csdn.net/20171126160956081?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="这里写图片描述"><br><strong>说明: test1 可以替换为主机的ip。</strong></p>
<h4 id="3-3-4修改-hadoop-env-sh"><a href="#3-3-4修改-hadoop-env-sh" class="headerlink" title="3.3.4修改 hadoop-env.sh"></a><strong>3.3.4修改 hadoop-env.sh</strong></h4><p>输入: </p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">vim hadoop-env.sh</div></pre></td></tr></table></figure>
<p>将<code>${JAVA_HOME}</code> 修改为自己的JDK路径</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">export   JAVA_HOME=$&#123;JAVA_HOME&#125;</div></pre></td></tr></table></figure>
<p>修改为：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">export   JAVA_HOME=/home/java/jdk1.8</div></pre></td></tr></table></figure>
<p><img src="http://img.blog.csdn.net/20171126161014633?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="这里写图片描述"></p>
<h4 id="3-4-5修改-hdfs-site-xml"><a href="#3-4-5修改-hdfs-site-xml" class="headerlink" title="3.4.5修改 hdfs-site.xml"></a><strong>3.4.5修改 hdfs-site.xml</strong></h4><p>输入:<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">vim hdfs-site.xml</div></pre></td></tr></table></figure></p>
<p>在<code>&lt;configuration&gt;</code>添加:</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div></pre></td><td class="code"><pre><div class="line">&lt;property&gt;</div><div class="line">   &lt;name&gt;dfs.name.dir&lt;/name&gt;</div><div class="line">   &lt;value&gt;/root/hadoop/dfs/name&lt;/value&gt;</div><div class="line">   &lt;description&gt;Path on the local filesystem where theNameNode stores the namespace and transactions logs persistently.&lt;/description&gt;</div><div class="line">&lt;/property&gt;</div><div class="line">&lt;property&gt;</div><div class="line">   &lt;name&gt;dfs.data.dir&lt;/name&gt;</div><div class="line">   &lt;value&gt;/root/hadoop/dfs/data&lt;/value&gt;</div><div class="line">   &lt;description&gt;Comma separated list of paths on the localfilesystem of a DataNode where it should store its blocks.&lt;/description&gt;</div><div class="line">&lt;/property&gt;</div><div class="line">&lt;property&gt;</div><div class="line">   &lt;name&gt;dfs.replication&lt;/name&gt;</div><div class="line">   &lt;value&gt;2&lt;/value&gt;</div><div class="line">&lt;/property&gt;</div><div class="line">&lt;property&gt;</div><div class="line">      &lt;name&gt;dfs.permissions&lt;/name&gt;</div><div class="line">      &lt;value&gt;false&lt;/value&gt;</div><div class="line">      &lt;description&gt;need not permissions&lt;/description&gt;</div><div class="line">&lt;/property&gt;</div></pre></td></tr></table></figure>
<p><img src="http://img.blog.csdn.net/20171126161142156?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="这里写图片描述"></p>
<p><strong>说明：dfs.permissions配置为false后，可以允许不要检查权限就生成dfs上的文件，方便倒是方便了，但是你需要防止误删除，请将它设置为true，或者直接将该property节点删除，因为默认就是true。</strong></p>
<h4 id="3-4-6-修改mapred-site-xml"><a href="#3-4-6-修改mapred-site-xml" class="headerlink" title="3.4.6 修改mapred-site.xml"></a><strong>3.4.6 修改mapred-site.xml</strong></h4><p>如果没有 <code>mapred-site.xml</code> 该文件，就复制<code>mapred-site.xml.template</code>文件并重命名为<code>mapred-site.xml</code>。<br>输入: </p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">vim mapred-site.xml</div></pre></td></tr></table></figure>
<p>修改这个新建的<code>mapred-site.xml</code>文件，在<code>&lt;configuration&gt;</code>节点内加入配置:</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div></pre></td><td class="code"><pre><div class="line">&lt;property&gt;</div><div class="line">    &lt;name&gt;mapred.job.tracker&lt;/name&gt;</div><div class="line">    &lt;value&gt;test1:49001&lt;/value&gt;</div><div class="line">&lt;/property&gt;</div><div class="line">&lt;property&gt;</div><div class="line">      &lt;name&gt;mapred.local.dir&lt;/name&gt;</div><div class="line">       &lt;value&gt;/root/hadoop/var&lt;/value&gt;</div><div class="line">&lt;/property&gt;</div><div class="line">&lt;property&gt;</div><div class="line">       &lt;name&gt;mapreduce.framework.name&lt;/name&gt;</div><div class="line">       &lt;value&gt;yarn&lt;/value&gt;</div><div class="line">&lt;/property&gt;</div></pre></td></tr></table></figure>
<p><img src="http://img.blog.csdn.net/20171126161250022?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="这里写图片描述"></p>
<p>使用的命令:<br><img src="http://img.blog.csdn.net/20171126161322929?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="这里写图片描述"><br>到此 Hadoop 的单机模式的配置就完成了。</p>
<h2 id="四、Hadoop启动"><a href="#四、Hadoop启动" class="headerlink" title="四、Hadoop启动"></a>四、Hadoop启动</h2><p>第一次启动Hadoop需要初始化<br>切换到 /home/hadoop/hadoop2.8/bin目录下输入</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">./hadoop  namenode  -format</div></pre></td></tr></table></figure>
<p><img src="http://img.blog.csdn.net/20171126161410802?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="这里写图片描述"><br><img src="http://img.blog.csdn.net/20171126161419612?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="这里写图片描述"></p>
<p>初始化成功后，可以在/root/hadoop/dfs/name 目录下(该路径在hdfs-site.xml文件中进行了相应配置，并新建了该文件夹)新增了一个current 目录以及一些文件。<br><img src="http://img.blog.csdn.net/20171126161438303?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="这里写图片描述"></p>
<p>启动Hadoop 主要是启动HDFS和YARN<br>切换到/home/hadoop/hadoop2.8/sbin目录<br>启动HDFS<br>输入:</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">start-dfs.sh</div></pre></td></tr></table></figure>
<p>登录会询问是否连接，输入yes ，然后输入密码就可以了<br><img src="http://img.blog.csdn.net/20171126161508441?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="这里写图片描述"></p>
<p>启动YARN<br>输入:</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">start-yarn.sh</div></pre></td></tr></table></figure>
<p><img src="http://img.blog.csdn.net/20171126161522032?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="这里写图片描述"></p>
<p>可以输入 jps 查看是否成功启动</p>
<p>在浏览器输入:<br><a href="http://39.108.77.250:8088/cluster" target="_blank" rel="external">http://39.108.77.250:8088/cluster</a><br><img src="http://img.blog.csdn.net/20171126161553305?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvcWF6d3N4cGNt/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="这里写图片描述"></p>
<p>到此，Hadoop的单机配置就结束了。</p>

      
    </div>

    <div>
      
        

      
    </div>

    <div>
      
        

      
    </div>

    <div>
      
        

      
    </div>

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/tags/大数据，hadoop/" rel="tag"># 大数据，hadoop</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/2017/11/25/大数据的一些相关知识介绍/" rel="next" title="大数据的一些相关知识介绍">
                <i class="fa fa-chevron-left"></i> 大数据的一些相关知识介绍
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/2017/12/09/大数据学习系列之二 ----- HBase环境搭建(单机)/" rel="prev" title="大数据学习系列之二 ----- HBase环境搭建(单机)">
                大数据学习系列之二 ----- HBase环境搭建(单机) <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          
  <div class="comments" id="comments">
    
  </div>


        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap" >
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
          <img class="site-author-image" itemprop="image"
               src="/images/xuwujing.png"
               alt="xuwujing" />
          <p class="site-author-name" itemprop="name">xuwujing</p>
           
              <p class="site-description motion-element" itemprop="description">The way of the future!</p>
          
        </div>
        <nav class="site-state motion-element">

          
            <div class="site-state-item site-state-posts">
              <a href="/archives/">
                <span class="site-state-item-count">56</span>
                <span class="site-state-item-name">日志</span>
              </a>
            </div>
          

          
            
            
            <div class="site-state-item site-state-categories">
              <a href="/categories/index.html">
                <span class="site-state-item-count">20</span>
                <span class="site-state-item-name">分类</span>
              </a>
            </div>
          

          
            
            
            <div class="site-state-item site-state-tags">
              <a href="/tags/index.html">
                <span class="site-state-item-count">36</span>
                <span class="site-state-item-name">标签</span>
              </a>
            </div>
          

        </nav>

        

        <div class="links-of-author motion-element">
          
            
              <span class="links-of-author-item">
                <a href="https://github.com/xuwujing" target="_blank" title="github">
                  
                    <i class="fa fa-fw fa-globe"></i>
                  
                  github
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="http://blog.csdn.net/qazwsxpcm?viewmode=list" target="_blank" title="csdn">
                  
                    <i class="fa fa-fw fa-globe"></i>
                  
                  csdn
                </a>
              </span>
            
              <span class="links-of-author-item">
                <a href="https://home.cnblogs.com/u/xuwujing/" target="_blank" title="cnblogs">
                  
                    <i class="fa fa-fw fa-globe"></i>
                  
                  cnblogs
                </a>
              </span>
            
          
        </div>

        
        

        
        
          <div class="links-of-blogroll motion-element links-of-blogroll-inline">
            <div class="links-of-blogroll-title">
              <i class="fa  fa-fw fa-globe"></i>
              
            </div>
            <ul class="links-of-blogroll-list">
              
                <li class="links-of-blogroll-item">
                  <a href="http://www.woainia.site/" title="woainia" target="_blank">woainia</a>
                </li>
              
                <li class="links-of-blogroll-item">
                  <a href="http://cmsblogs.com/" title="chenssy" target="_blank">chenssy</a>
                </li>
              
            </ul>
          </div>
        

        


      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#一、环境选择"><span class="nav-number">1.</span> <span class="nav-text">一、环境选择</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#1，服务器选择"><span class="nav-number">1.1.</span> <span class="nav-text">1，服务器选择</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#2，配置选择"><span class="nav-number">1.2.</span> <span class="nav-text">2，配置选择</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#3，下载地址"><span class="nav-number">1.3.</span> <span class="nav-text">3，下载地址</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#二、服务器的相关配置"><span class="nav-number">2.</span> <span class="nav-text">二、服务器的相关配置</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#1，更改主机名"><span class="nav-number">2.1.</span> <span class="nav-text">1，更改主机名</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#2，关闭防火墙"><span class="nav-number">2.2.</span> <span class="nav-text">2，关闭防火墙</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#3，时间设置"><span class="nav-number">2.3.</span> <span class="nav-text">3，时间设置</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#三、Hadoop环境安装"><span class="nav-number">3.</span> <span class="nav-text">三、Hadoop环境安装</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#1，下载jdk、hadoop"><span class="nav-number">3.1.</span> <span class="nav-text">1，下载jdk、hadoop</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#3-1-1解压文件"><span class="nav-number">3.1.1.</span> <span class="nav-text">3.1.1解压文件</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#2，JDK环境配置"><span class="nav-number">3.2.</span> <span class="nav-text">2，JDK环境配置</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#3-2-1-profile-文件更改"><span class="nav-number">3.2.1.</span> <span class="nav-text">3.2.1 profile 文件更改</span></a></li></ol></li><li class="nav-item nav-level-3"><a class="nav-link" href="#3，Hadoop-环境配置"><span class="nav-number">3.3.</span> <span class="nav-text">3，Hadoop 环境配置</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#3-3-1-profile-文件更改"><span class="nav-number">3.3.1.</span> <span class="nav-text">3.3.1 profile 文件更改</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#3-3-2新建文件夹"><span class="nav-number">3.3.2.</span> <span class="nav-text">3.3.2新建文件夹</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#3-3-3修改-core-site-xml"><span class="nav-number">3.3.3.</span> <span class="nav-text">3.3.3修改 core-site.xml</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#3-3-4修改-hadoop-env-sh"><span class="nav-number">3.3.4.</span> <span class="nav-text">3.3.4修改 hadoop-env.sh</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#3-4-5修改-hdfs-site-xml"><span class="nav-number">3.3.5.</span> <span class="nav-text">3.4.5修改 hdfs-site.xml</span></a></li><li class="nav-item nav-level-4"><a class="nav-link" href="#3-4-6-修改mapred-site-xml"><span class="nav-number">3.3.6.</span> <span class="nav-text">3.4.6 修改mapred-site.xml</span></a></li></ol></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#四、Hadoop启动"><span class="nav-number">4.</span> <span class="nav-text">四、Hadoop启动</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright" >
  
  &copy; 
  <span itemprop="copyrightYear">2017</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">xuwujing</span>
</div>


<div class="powered-by">
  由 <a class="theme-link" href="https://hexo.io">Hexo</a> 强力驱动
</div>

<div class="theme-info">
  主题 -
  <a class="theme-link" href="https://github.com/iissnan/hexo-theme-next">
    NexT.Muse
  </a>
</div>


        

        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  












  
  <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>

  
  <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>

  
  <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>

  
  <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.1"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.1"></script>



  
  

  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.1"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.1"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.1"></script>



  


  




	





  





  





  






  





  

  

  

  

  

  

</body>
</html>
